Skip to main content

fontSizes

Type​

function

Summary​

Returns a list of the font sizes available for a specified font.

Syntax​

the fontSizes of <fontName>
fontSizes(<fontName>)

Description​

Use the fontSizes function to determine which font sizes can be displayed or printed without creating "jaggies".

If zero appears in the list returned by the fontSizes function, the font is scalable, meaning that it can be displayed at any size supported by the operating system.

Parameters​

NameTypeDescription

fontName

The name of a font that is installed on the system.

Examples​

the fontSizes of "Arial"

Value​

NameTypeDescription

return

The fontSizes function returns a list of numbers that represent point sizes, one per line.

control structure: function

function: fontStyles

glossary: font, return

keyword: line

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?